package com.biubiu.biubiuexam.common.dto;

import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serial;
import java.io.Serializable;

/**
 * 前端注册时需要传递的信息
 */
@Data
public class RegisterDto implements Serializable {

    // 序列化 UID
    @Serial
    private static final long serialVersionUID = 1L;

    // 邮箱
    @Email(message = "必须为合格的邮箱地址")
    @NotBlank(message = "账号不能为空")
    private String email;

    // 密码
    @NotBlank(message = "密码不能为空")
    private String password;

    // 昵称
    @NotBlank(message = "昵称不能为空")
    private String nickName;

    // 个人简介
    private String description;
}
